package creation.abstractFactory;

public class Test {
    public static void main(String[] args) {

        //抽象工厂方法
        OrderPizza orderPizza = new OrderPizza();
        orderPizza.orderPizza(new BJFactory(),"chess");
        orderPizza.orderPizza(new BJFactory(),"greek");

        orderPizza.orderPizza(new LDFactory(),"chess");
        orderPizza.orderPizza(new LDFactory(),"greek");
    }
}
